// 检查是否为标点符号
export const isPunctuation = (char: string) => {
  const punctuationRanges = [
    '\u2000-\u206F', // 一般间隔符号(General Punctuation)
    '\u2700-\u27BF', // 装饰符号(Ornamental Dingbats)
    '\u3000-\u303F', // CJK符号和标点(CJK Symbols and Punctuation)
    '\uFF00-\uFFEF'  // 全角标点(Halfwidth and Fullwidth Forms)
  ];
  const pattern = new RegExp(`^[${punctuationRanges.join('')}]$`);

  return pattern.test(char);
};